//
//  SEGInputTypeView.h
//  Uhomebk
//
//  Created by mac on 2017/10/30.
//  Copyright © 2017年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, SEGEnumsInputTypeView) {
    SEGEnumsInputTypeView_service = 0, /*服务类型*/
    SEGEnumsInputTypeView_breakDate = 1, /*预约日期*/
    SEGEnumsInputTypeView_breakTime = 2 /*预约时间段*/
};

/**
 SEGInputTypeView
 */
@protocol SEGInputTypeViewDelegate <NSObject>


/**
 选择值回调
 
 @param valueDict
 @param type
 */
-(void)selectInputTypeCallBack:(NSDictionary *)valueDict type:(SEGEnumsInputTypeView)type;

@end



@interface SEGInputTypeView : UIView
@property (weak, nonatomic) IBOutlet UIImageView *listArrowImage;
@property (weak, nonatomic) IBOutlet UILabel *tiitleLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet UIView *lineView;
@property (weak, nonatomic) IBOutlet UIButton *typeButton;
-(void)paddDataWith:(NSDictionary *)dict type:(SEGEnumsInputTypeView)type;
-(void)refreshUI;
-(void)configBespealData;
@property(nonatomic, weak) id<SEGInputTypeViewDelegate> delegate;

@property(nonatomic,strong)id dataSource;/**数据源 */
/**
 接收任何值
 */
@property (nonatomic, strong)id tempValue;

@end

